#include"progress.h"

void progress()
{
  char str[SIZE] = { 0 };
  char trun[] = "|/-\\";
  int i = 0;
  for(; i < SIZE; i++)
  {
    printf("[%-51s][%d\%][%c]\r",str,i*100/SIZE,trun[i%4]);
    fflush(stdout);
    sleep(1);
    str[i] = STYLE;
    str[i+1]=STYLEO;
  }
  printf("\n");
}
